import axios from './http'
import qs from 'qs'
import base from './base'
const shop = {
  list (params) {
    return axios.get(`${base.pro}/api/cart/lists`, {
      params
    })
  },
  delete (params) {
    return axios.post(`${base.pro}/api/cart/del`, qs.stringify(params))
  },
  changeInfo (params) {
    return axios.post(`${base.pro}/api/cart/change`, qs.stringify(params))
  }
}

export default shop
